package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.IndexBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.GOODS_Index)
public class ConnIndex extends BaseAsyPost<IndexBean> {

    public String member_id, email;
    public String goodstype_id;

    public ConnIndex(String member_id, String goodstype_id, AsyCallBack<IndexBean> asyCallBack) {
        super(asyCallBack);
        this.member_id = member_id;
        this.goodstype_id = goodstype_id;
    }

    @Override
    protected IndexBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");


        Gson gson = new Gson();

        IndexBean loginBean = new IndexBean();

        loginBean = gson.fromJson(object.toString(), IndexBean.class);


        return loginBean;


    }
}



